<admintpl file="header"/>
<style type="text/css">
.col-auto {
	overflow: hidden;
	_zoom: 1;
	_float: left;

	padding:10px;
}
.col-right {
	float: right;
	width: 60%;
	overflow: hidden;
	margin-left: 6px;
	padding:10px;
	border: 1px solid #c2d1d8;
}
</style>
</head>
<body class="J_scroll_fixed">
<div class="wrap jj">
  <ul class="nav nav-tabs">
     <li><a href="{:U('Product/index')}">产品列表</a></li>
     <li class="active"><a href="{:U('Product/add')}"  target="_self">添加产品</a></li>
  </ul>
  <form action="{:u('Product/add_post')}" method="post" class="form-horizontal J_ajaxForm" enctype="multipart/form-data">
  <div class="col-auto">
    <div class="table_full">
      <table width="100%" cellpadding="4" cellspacing="2">
            <tr>
              <th width="80">品牌</th>
              <td><select name="brand" class="normal_select">{$brandlist}</select></td>
            </tr>
            <tr>
              <th>产品名称</th>
              <td>
              	<input type="text" style="width:300px;" name="pname" id="pname"  required value="" class="input input_hd J_title_color" placeholder="请输入产品名称" onkeyup="strlen_verify(this, 'title_len', 50)" />
              	<span class="must_red">*</span>
              </td>
            </tr>
            <tr>
              <th>报价</th>
              <td><input type="text" name='price' id='price'  required placeholder='请填写报价' class="input input_hd J_title_color" /></td>
            </tr> 
            <tr>
            	<th>图片</th>
            	<td>
                <div><input type='hidden' name='avatar' id='thumb' value='' />
			<a href='javascript:void(0);' onclick="flashupload('thumb_images', '附件上传','thumb',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
			<img src='__ROOT__/statics/images/icon/upload-pic.png' id='thumb_preview' width='135' height='113' style='cursor:hand' /></a>
            <input type="button"  class="btn" onclick="$('#thumb_preview').attr('src','__ROOT__/statics/images/icon/upload-pic.png');$('#thumb').val('');return false;" value="取消图片"></div>
                </td>
            </tr>                       
        </tbody>
      </table>
    </div>
  </div>
  <div class="form-actions">
        <button class="btn btn_submit J_ajax_submit_btn" type="submit">提交</button>
        <a class="btn" href="{:U('Product/index')}">返回</a>
  </div>
 </form>
</div>
<script type="text/javascript" src="__ROOT__/statics/js/common.js"></script>
<script type="text/javascript" src="__ROOT__/statics/js/content_addtop.js"></script>
</body>
</html>